package com.youpingou.controller;

import com.youpingou.service.SkuSearchService;
import com.youpingou.vo.BaseResult;
import com.youpingou.vo.SearchResult;
import com.youpingou.vo.SkuSearchRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping
public class SkuSearchController {
    @Autowired
    private SkuSearchService skuSearchService;
    @GetMapping("/goods")
    public BaseResult findSkus(SkuSearchRequest req){
        SearchResult result = skuSearchService.search(req);

        return result;


    }
}